package com.gel.aiagent.demo.invoke;

import dev.langchain4j.community.model.dashscope.QwenChatModel;
import dev.langchain4j.model.chat.ChatLanguageModel;

public class LangChainAiInvoke {
    public static void main(String[] args) {
        ChatLanguageModel qewnmodel = QwenChatModel.builder()
                .apiKey(ApiKey.API_KEY)
                .modelName("qwen-plus")
                .build();
        String answer = qewnmodel.chat("你好");
        System.out.println(answer);
    }

}
